package com.zhanglei.method;

/**
 * @author caesar
 * @date 2025/7/7
 * @Description:
 * @apiNote
 */
public class SmartWatch {
    private String watchId;//手表唯一编号
    private String brand;//品牌
    private int batteryLife;//电池续航时间
    private boolean isWaterProof;//是否防水

    public SmartWatch() {
    }

    public SmartWatch(String watchId, String brand, int batteryLife, boolean isWaterProof) {
        this.watchId = watchId;
        this.brand = brand;
        this.batteryLife = batteryLife;
        this.isWaterProof = isWaterProof;
    }

    public String getWatchId() {
        return watchId;
    }

    public void setWatchId(String watchId) {
        this.watchId = watchId;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getBatteryLife() {
        return batteryLife;
    }

    public void setBatteryLife(int batteryLife) {
        this.batteryLife = batteryLife;
    }

    public boolean isWaterProof() {
        return isWaterProof;
    }

    public void setWaterProof(boolean waterProof) {
        isWaterProof = waterProof;
    }

    public String showinfo() {
        return "手表编号：" + watchId + "，品牌：" + brand + "，续航时间：" + batteryLife + "，防水：" + isWaterProof;
    }
}
